package com.huoyun.car.dao;

import java.util.List;

import com.huoyun.base.dao.BaseDao;
import com.huoyun.car.bean.Car;
import com.huoyun.car.bean.Driver;

public interface DriverDao extends BaseDao<Driver> {
	public void saveDriver(Driver driver);

	public void updateAll(Driver driver);

	public void updateRate(String rate, long count, long id);

	public Driver getDriverById(long driverId);

	public List<Driver> getDriverByUserId(long userId);

	public void delete(long driverId);

	public List<Driver> getDriverListByUsername(String username);

	public Driver getDriverByIdCardNumber(long userId, String driverIdCardNumber);

	public Driver getDriverByDrivingLicenseNumber(
			long userId, String driverDrivingLicenseNumber);
}
